infobar: Stop looking at stock items
authorTimm Bäder <mail@baedert.org>
Sun, 16 Oct 2016 10:55:27 +0000 (12:55 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Oct 2016 22:29:20 +0000 (00:29 +0200)
GtkButton doesn't have a use-stock property anymore anyway.

gtk/gtkinfobar.c

index 02aa7ccf7f2d34ab4ddb4530ca33624d4b58eb7a..9974f72bdd6e0d6e140c2f229971a72661b23468 100644 (file)
@@ -615,17 +615,6 @@ gtk_info_bar_add_button (GtkInfoBar  *info_bar,
   button = gtk_button_new_with_label (button_text);
   gtk_button_set_use_underline (GTK_BUTTON (button), TRUE);
 
-  G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-
-  if (button_text)
-    {
-      GtkStockItem item;
-      if (gtk_stock_lookup (button_text, &item))
-        g_object_set (button, "use-stock", TRUE, NULL);
-    }
-
-  G_GNUC_END_IGNORE_DEPRECATIONS;
-
   gtk_widget_set_can_default (button, TRUE);
 
   gtk_widget_show (button);